package com.cosina.game.crystallight.model.crystal;

import com.cosina.game.crystallight.MediaPlayerAdapter;
import com.cosina.game.crystallight.engine.BattleEngine;

public class Palm {
	private static CrystalContainer container;
	
	public static void setContainer(CrystalContainer container){
		Palm.container = container;
		if(null != container){
			MediaPlayerAdapter.crystalSelect();
			BattleEngine.desk.unfeed();
		}else{
			MediaPlayerAdapter.plug();
		}
	}
	
	public static CrystalContainer getContainer(){
		return container;
	}
	
	public static boolean snatchCrystal(){
		if(null != container && container.isEmpty() == false)
			return true;
		return false;
	}

	public static void wash() {
		container = null;
	}
}
